package com.xjrh.traintravel.collector.netty.coder.command;

/**
 * 通讯协议-命令Enum
 *
 * @author snps
 * @create 2022-01-20 14:38
 * @describe
 **/
public enum AgreementCommandEnum {

    /**
     * S_: 发送
     * R_: 回复
     */

    S_00("心跳", "00"),
    R_80("心跳#回复", "80"),

    S_01("登录", "01"),
    R_81("登录#回复", "81"),

    S_02("设置参数", "02"),
    R_82("设置参数#回复", "82"),

    S_03("读取参数", "03"),
    R_83("读取参数#回复", "83"),

    S_04("采集数据上传", "04"),
    R_84("采集数据上传#回复", "84"),

    S_05("测试", "05"),
    R_85("测试#回复", "85"),

    S_06("前置版本信息获取", "06"),
    R_86("前置版本信息获取#回复", "86"),

    S_07("自检模式", "07"),
    R_87("自检模式#回复", "87"),

    S_08("MVB信息", "08"),
    R_88("MVB信息#回复", "88"),

    S_09("升级", "09"),
    R_89("升级#回复", "89"),

    S_0A("获取文件列表", "0A"),
    R_8A("获取文件列表#回复", "8A"),

    S_OB("读取指定文件", "0B"),
    R_8B("读取指定文件#回复", "8B"),

    S_OC("前置透传", "0C"),
    R_8C("前置透传#回复", "8C"),

    S_0D("异常上报", "0D"),
    R_8D("异常上报#回复", "8D");


    private AgreementCommandEnum(String name, String value) {
        this.name = name;
        this.value = value;
    }

    /**
     * 命令名
     */
    private String name;

    /**
     * 命令值
     */
    private String value;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

}